home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / scantab.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  4.4 KB  |  107 lines

  1. /* Copyright (C) 1994, 1995, 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: scantab.c,v 1.2 2000/09/19 19:00:48 lpd Exp $ */
  20. /* Scanner table for PostScript/PDF tokens */
  21. #include "stdpre.h"
  22. #include "scommon.h"
  23. #include "scanchar.h"        /* defines interface */
  24.  
  25. /* Define the character scanning table (see scanchar.h). */
  26. const byte scan_char_array[max_stream_exception + 256] =
  27. {stream_exception_repeat(ctype_exception),
  28.         /* Control characters 0-31. */
  29.  ctype_space,            /* NULL - standard only in Level 2 */
  30.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  31.  ctype_name, ctype_name, ctype_name,
  32.  ctype_space,            /* TAB (\t) */
  33.  ctype_space,            /* LF (\n) */
  34.  ctype_name,
  35.  ctype_space,            /* FF (\f) */
  36.  ctype_space,            /* CR (\r) */
  37.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  38.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  39.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  40.  ctype_name, ctype_name, ctype_name,
  41.         /* Printable characters 32-63 */
  42.  ctype_space,            /* space (\s) */
  43.  ctype_name, ctype_name, ctype_name, ctype_name,
  44.  ctype_other,            /* % */
  45.  ctype_name, ctype_name,
  46.  ctype_other,            /* ( */
  47.  ctype_other,            /* ) */
  48.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  49.  ctype_other,            /* / */
  50.  0, 1, 2, 3, 4, 5, 6, 7, 8, 9,    /* digits 0-9 */
  51.  ctype_name, ctype_name,
  52.  ctype_other,            /* < */
  53.  ctype_name,
  54.  ctype_other,            /* > */
  55.  ctype_name,
  56.         /* Printable characters 64-95 */
  57.  ctype_name,
  58.  10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
  59.  20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
  60.  30, 31, 32, 33, 34, 35,
  61.  ctype_other,            /* [ */
  62.  ctype_name,
  63.  ctype_other,            /* ] */
  64.  ctype_name, ctype_name,
  65.         /* Printable characters 96-126 and DEL */
  66.  ctype_name,
  67.  10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
  68.  20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
  69.  30, 31, 32, 33, 34, 35,
  70.  ctype_other,            /* { */
  71.  ctype_name,
  72.  ctype_other,            /* } */
  73.  ctype_name, ctype_name,
  74.         /* Characters 128-159, binary tokens */
  75.  ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken,
  76.  ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken,
  77.  ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken,
  78.  ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken,
  79.  ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken,
  80.  ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken, ctype_btoken,
  81.  ctype_btoken, ctype_btoken,
  82.         /* Characters 160-191, not defined */
  83.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  84.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  85.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  86.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  87.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  88.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  89.  ctype_name, ctype_name,
  90.         /* Characters 192-223, not defined */
  91.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  92.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  93.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  94.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  95.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  96.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  97.  ctype_name, ctype_name,
  98.         /* Characters 224-255, not defined */
  99.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  100.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  101.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  102.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  103.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  104.  ctype_name, ctype_name, ctype_name, ctype_name, ctype_name,
  105.  ctype_name, ctype_name
  106. };
  107.